﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/NoMenuSite.Master" Inherits="System.Web.Mvc.ViewPage<GabageFactory.Models.ChangePasswordModel>" %>

<asp:Content ID="changePasswordTitle" ContentPlaceHolderID="TitleContent" runat="server">
    修改密码
</asp:Content>

<asp:Content ID="headerContent" ContentPlaceHolderID="HeaderContent" runat="server">
    <link rel="stylesheet" href="../../Content/silver/login.css" type="text/css" />
</asp:Content>

<asp:Content ID="changePasswordContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>为了你的账户安全，请修改密码</h2>
    <p>
        请填写下面的表单进行密码修改： 
    </p>
    <p>
        密码长度至少为 <%= ViewData["PasswordLength"] %> 位.
    </p>

    <% using (Html.BeginForm()) { %>
        <%= Html.ValidationSummary(true, "密码修改不正确，请根据提示重新修改.") %>
        <div>
            <fieldset>
                <legend>修改登录密码</legend>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.OldPassword) %>
                </div>
                <div class="editor-field">
                    <%= Html.PasswordFor(m => m.OldPassword) %>
                    <%= Html.ValidationMessageFor(m => m.OldPassword) %>
                </div>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.NewPassword) %>
                </div>
                <div class="editor-field">
                    <%= Html.PasswordFor(m => m.NewPassword) %>
                    <%= Html.ValidationMessageFor(m => m.NewPassword) %>
                </div>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.ConfirmPassword) %>
                </div>
                <div class="editor-field">
                    <%= Html.PasswordFor(m => m.ConfirmPassword) %>
                    <%= Html.ValidationMessageFor(m => m.ConfirmPassword) %>
                </div>
                
                <p>
                    <input type="submit" value="修改密码" />
                </p>
            </fieldset>
        </div>
    <% } %>
</asp:Content>
